﻿package com.tudou.track
{
    import com.tudou.js.*;

    public class PlayTimeJsTracker extends Object
    {
        private var jsExchanger:JSExchanger;
        private static var _ins:PlayTimeJsTracker = null;

        public function PlayTimeJsTracker()
        {
            jsExchanger = JSExchanger.getInst();
            return;
        }// end function

        public function notifyJs(param1:int, param2:Number) : void
        {
            jsExchanger.justNotifyJS("updatePlayTime", [param1, param2]);
            return;
        }// end function

        public static function get ins() : PlayTimeJsTracker
        {
            if (_ins == null)
            {
                _ins = new PlayTimeJsTracker;
            }
            return _ins;
        }// end function

    }
}
